#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxulong(ulong value)
{
	System_UInt64 *box = new(,System_UInt64);
	box->m_value = value;
	return (System_Object *)box;
}

internal ulong ___unboxulong(System_Object *value)
{
	return ((System_UInt64 *)value)->m_value;
}

//+ type
Implement_Type(System_UInt64,System_Object,)
Implement_DefaultCtor(System_UInt64,System_Object)
System_Type _ulongType = { (__typeCtor)null, L"ulong", (__typeBoxer)&___boxulong, (__typeUnboxer)&___unboxulong, (char*)default(ulong), _TypeFlags_Value };
Declare_System(System_UInt64, ulong)
Implement_System(System_UInt64, ulong)